<?php
namespace app\admin\controller\v1;
use app\admin\Adminbase;

class News extends Adminbase 
{
	
	/**
	* /admin/v1/news/getNew
	* 不需要登录 
	* @is_need_login true
	*/
	public function getNew($type){
		try {
			$result = model('news')
				->distinct(true)
				->where('type',$type)
				->value('id');
			return $this->ReSucess($result);	
		} catch (\Exception $e) {
			return $this->ReError($e->getMessage());	
		}
	}
	
}



